package top.fyr.service.impl;

import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.fyr.dao.UserMapper;
import top.fyr.model.User;
import top.fyr.service.UserService;

import java.util.List;

/**
 * @Description
 * @Author 付阳荣
 * @CreateDate 2018/3/5
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> listUsers(User user, RowBounds rowBounds) {
        return userMapper.selectByRowBounds(null,rowBounds);
    }

    @Override
    public List<User> listAllUsers() {
        return userMapper.selectAll();
    }
}
